package csci5115.autoalarm;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.TextView;

public class appointmentreminder extends Activity {
	
	Button btnAppointmentDetail, btnGetDirections, btnClose;
	TextView txtQuickReminder;
	int intCounter = 0;
	
    /** Called when the activity is first created. */
	@Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.appointmentreminder);        

    	btnAppointmentDetail = (Button) findViewById(R.id.btnAppointmentDetail);
    	btnGetDirections = (Button) findViewById(R.id.btnGetDirections);
    	btnClose = (Button) findViewById(R.id.btnClose);
    	txtQuickReminder = (TextView)findViewById(R.id.txtQuickReminder);

        btnAppointmentDetail.setOnClickListener(new View.OnClickListener() {
			
			public void onClick(View v) {
				// TODO Auto-generated method stub
				intCounter++;
				txtQuickReminder.setText("Jumpt to Event Editor");
			}
		});
        
        btnGetDirections.setOnClickListener(new View.OnClickListener() {
			
			public void onClick(View v) {
				// TODO Auto-generated method stub
				Intent myIntent = new Intent(getBaseContext(), MapsActivity.class).setFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);
				
				//myIntent.putExtra("EventID", EventID);
				startActivity(myIntent);
				
				//CLOSE THE CURRENT ACTIVITY
				finish();
			}
		});
        
        btnClose.setOnClickListener(new View.OnClickListener() {
			
     			public void onClick(View v) {
     				//CLOSE THE CURRENT ACTIVITY
    				finish();
     			}
     		});      
    }
	
	
}
